import request from '@/utils/request'

export function getVideoListByPage(data) {
  return request.get('/video/list', { params: data })
}

export function getAllVideo(data) {
  return request.get('/videos', data)
}

export function addVideo(data) {
  return request.post('/video', data)
}

export function updateVideo(data) {
  return request.put('/video', data)
}

export function deleteVideo(id) {
  return request.delete('/video/' + id, id)
}

export function getVideoById(id) {
  return request.get('/video/' + id)
}
